package cn.tangsihai.order.domain;

import cn.tangsihai.basic.domain.BasicDomain;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class OrderPet extends BasicDomain{
    // 订单状态
    // 0下单成功待支付
    public static final int ORDER_WAIT_PAY = 0;
    // 1支付成功待发货
    public static final int ORDER_WAIT_DELIVER = 1;
    // 2用户取消订单
    public static final int ORDER_FAIL = 2;
    // 3.订单超时自动取消
    public static final int ORDER_OVERTIME_FAIL = 3;
    // 4.支付失败
    public static final int ORDER_PAY_FAIL = 4;
    // 5.已经发货
    public static final int ORDER_DELIVER_ALREADY = 5;
    // 6.确认收货
    public static final int ORDER_CONFIRM_RECEIPT = 6;

    // 支付方式
    // 1银联
    public static final int UNIONPAY = 1;
    // 2微信
    public static final int WECHAT = 2;
    // 3支付宝
    public static final int ALIPAY = 3;

    // 摘要
    private String digest;
    // 订单状态
    private Integer state;
    private BigDecimal totalPrice;
    private int totalCount;
    private String orderSn;
    private Date lastUpdateTime;
    private Date payExpireTime;
    private Long userId;
    private Date createTime;
    private Long payType;


}
